window.onload = function () {
    var html = document.body.outerHTML,
        matches = RegExp.matches(html, 'href="([^"]*)');

    console.log(matches);
};